import Vue from 'vue'
import Router from 'vue-router'
import City from '../components/City'
import Search from '../components/Search'
import Login from '../components/Login'
import Reset from '../components/Reset'
import Home from '../components/Home'
import ListDetail from '../components/ListDetail'
import Shop from '../components/Shop'
import ShopDetail from '../components/ShopDetail'
import SearchFood from '../components/SearchFood'
import Order from '../components/Order'
import My from '../components/My/My'
import TakeOver from '../components/My/TakeOver'
import AddAddress from '../components/My/AddAddress'
import SearchAdd from '../components/My/SearchAdd'
import Money from '../components/My/Money'
import Coupon from '../components/My/Coupon'
import Point from '../components/My/Point'
import Exchange from '../components/My/Exchange'
import BalanceQuesition from '../components/My/BalanceQuesition'
import UserMsg from '../components/My/UserMsg'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path:'/',
      name:'city',
      component:City,
    },{
      path:'/search',
      name:'search',
      component:Search,
    },{
      path:'/login',
      name:'login',
      component:Login
    },{
      path:'/reset',
      name:'reset',
      component:Reset
    },{
      path:'/home',
      name:'home',
      component:Home
    },{
      path:'/listDetail',
      name:'listDetail',
      component:ListDetail
    },{
      path:'/shop',
      name:'shop',
      component:Shop
    },{
      path:'/shopDetail',
      name:'shopDetail',
      component:ShopDetail
    },{
      path:'/searchFood',
      name:'searchFood',
      component:SearchFood
    },{
      path:'/my',
      name:'my',
      component:My
    },{
      path:'/my/userMsg',
      name:'userMsg',
      component:UserMsg
    },{
      path:'/my/takeOver',
      name:'takeOver',
      component:TakeOver
    },{
      path:'/my/takeOver/addAddress',
      name:'addAddress',
      component:AddAddress
    },{
      path:'/my/takeOver/addAddress/searchAdd',
      name:'searchAdd',
      component:SearchAdd
    },
    {
      path:'/order',
      name:'order',
      component:Order
    },{
      path:'/money',
      name:'money',
      component:Money
    },{
      path:'/money/balanceQuesition',
      name:'balanceQuesition',
      component:BalanceQuesition
    },
    {
      path:'/coupon',
      name:'coupon',
      component:Coupon
    },
    {path:'/coupon/exchange',
    name:'exchange',
    component:Exchange
    },
    {
      path:'/point',
      name:'point',
      component:Point
    },
  ]
})
